const sidebar = require("./utils/getSidebarData")
const {base} = require("./utils/common")

module.exports = {
    head: [
        // 添加百度统计
        [
            "script",
            {},
            `var _hmt = _hmt || [];
            (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?6371333d39195dbe958ef14c0a722ac4";
            var s = document.getElementsByTagName("script")[0]; 
            s.parentNode.insertBefore(hm, s);
            })();`
        ],
        ['link', { rel: 'icon', href: '/img/newlogo.ico' }],
        ['meta', { name:'referrer', content:'no-referrer'}]
      ],
    title: '刀刀的知识积累',
    base:base,
    description: '立志不再懒懒散散的小前端的知识库',
    markdown:{
        lineNumbers:true,
    },
    themeConfig: {
        repo: 'Ostask/daodao-knowledge', // Github仓库地址
        docsDir: 'docs', // .md文件放在了docs目录下
        editLinks: true, // 启用编辑链接
        editLinkText: '编辑',
        logo: '/img/home.jpg',
        sidebarDepth:2,
        footer: "MIT Licensed | Copyright © 2021-present 刀刀",   
        nav: [
            { text: '主页', link: '/' },
            {text: '前端学习',
                items: [
                    { 
                        text: '基础',
                        items:[
                            {text:'JavaScript',link:'/pages/600fd9/'},
                            {text:'算法&常用方法',link:'/pages/12e2d5/'},
                            {text:'TypeScript',link:'/pages/450a09/'},
                            {text:'css',link:'/pages/ffc1d9/'},
                            {text:'现代JavaScript库开发',link:'/pages/a5dbfb/'}
                        ]
                    },
                    { 
                        text: '框架学习',
                        items:[
                            // {text:'vue',link:'/vue/lesson1'},
                            {text:'react',link:'/pages/8ea889/'},
                            {text:'vuePress',link:'/pages/3ba846/'},
                            {text:'qiankun微前端',link:'/pages/347ae3/'},
                            {text:'vue3',link:'/pages/f97ef5/'},
                            {text:'nuxt3',link:'/pages/663c1d/'}
                        ]
                    },
                    {
                        text:'webgl学习',
                        items:[
                            {text:'threejs',link:'/pages/7fb7ad/'},
                            {text:'the book of shaders', link:'/pages/e77551/'},
                            {text:'babylonjs',link:'/pages/b640a7/'},
                            {text:'数字孪生',link:'/pages/4b3559/'}
                        ]
                    }
                ]
            },
            {
                text: '后端学习',
                items: [
                    {text:'python', link:'/pages/437984/'},
                    {text:'nodejs',link:'/pages/b7956e/'},
                    {text:'uniCloud',link:'/pages/358f87/'}
                ]
            },
            {
                text:'AI学习',
                items:[
                    {text:'Coze从入门到精通', link:'/pages/369724/'}
                ]
            },
            {
                text: '艺术创作',
                items: [
                    {text:'blender零基础入门', link:'/pages/aa6d21/'},
                    {text:'0基础学剪辑',link:'/pages/5b492a/'},
                    {text:'真实地貌制作',link:'/pages/288a2c/'},
                    {text:'True-Terrain5插件学习',link:'/pages/b9a0d6/'},
                    {text:'建模作品集',link:'/pages/f0171c/'}
                ]
            },
            { text: '零零碎碎',link:'/pages/cd2a4f/'},
            { text: '随记', link: '/pages/9d1205/' },
            {text: '索引',
                items: [
                    {text:'归档',link:'/archives/'},
                ]
            },
            { text: '关于我', link: '/daodao/' }
        ],
        sidebar:sidebar
    }
}